package com.exam.service.serviceImpl;

import com.exam.entity.JudgmentQuestions;
import com.exam.mapper.JudgmentQMapper;
import com.exam.service.JudgmentQService;

import java.util.List;
import java.util.Map;

public class JudgmentQServiceImpl implements JudgmentQService {

    private JudgmentQMapper judgmentQMapper;

    public void setJudgmentQMapper(JudgmentQMapper judgmentQMapper) {
        this.judgmentQMapper = judgmentQMapper;
    }

    @Override
    public int add_judgment_question(JudgmentQuestions judgmentQuestions) {
        return judgmentQMapper.add_judgment_question(judgmentQuestions);
    }

    @Override
    public List<JudgmentQuestions> get_judgmentQ_by_s_id(int s_id) {
        return judgmentQMapper.get_judgmentQ_by_s_id(s_id);
    }

    @Override
    public int update_judgmentQ_by_j_id(JudgmentQuestions judgmentQuestions) {
        return judgmentQMapper.update_judgmentQ_by_j_id(judgmentQuestions);
    }

    @Override
    public int del_judgmentQ_by_j_id(int j_id) {
        return judgmentQMapper.del_judgmentQ_by_j_id(j_id);
    }

    @Override
    public List<JudgmentQuestions> get_question_by_s_id_and_level(Map<String, Object> map) {
        return judgmentQMapper.get_question_by_s_id_and_level(map);
    }

    @Override
    public JudgmentQuestions get_jq_by_j_id(int j_id) {
        return judgmentQMapper.get_jq_by_j_id(j_id);
    }

    @Override
    public int num2() {
        return judgmentQMapper.num2();
    }

    @Override
    public List<JudgmentQuestions> get_jq_test_by_s_id(int s_id) {
        return judgmentQMapper.get_jq_test_by_s_id(s_id);
    }
}
